<%@ page import="ac.zlf.springmybatis.admin.bjui.constant.Uri" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/view/common/_common_prefix.jsp" %>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${root}<%=Uri._A_MENU_PAGE_SHOW%>" method="get">
        <div class="bjui-searchBar">

            <button type="button" class="showMoreSearch" data-toggle="moresearch" data-name="custom">
                <i class="fa fa-angle-double-down"></i>
            </button>
            <button type="submit" class="btn-blue" data-icon="search" id="query_base_show">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true"
               data-icon="undo">清空查询</a>

            <div class="bjui-moreSearch">
            </div>

            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">
                        更多操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li>
                            <a href="${root}#" data-toggle="navtab" data-id="navtab"
                               data-title="新增">新增</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top data_table table_center"
           data-selected-multi="true">
        <thead>
        <tr class="line_top">
            <th>id</th>
            <th>garde</th>
            <th>menuName</th>
            <th>facion</th>
            <th>parentId</th>
            <th>url</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="item">
            <tr>
                <td><hs:out value="${item.id}"/></td>
                <td><hs:out value="${item.garde}"/></td>
                <td><hs:out value="${item.menuName}"/></td>
                <td><hs:out value="${item.facion}"/></td>
                <td><hs:out value="${item.parentId}"/></td>
                <td><hs:out value="${item.url}" length="10"/></td>
                <td class="option"><i class="fa fa-internet-explorer" aria-hidden="true"></i>

                    <a href="${root}<%=Uri._A_MENU_DETAIL_SHOW%>?id=${item.id}" class="btn btn-green"
                       data-toggle="dialog" data-id="_a_menu_detail" data-width="700" data-height="200" data-mask="true"
                       data-confirm-msg="查看">查看</a>
                    <a href="${root}<%=Uri._A_MENU_DEL_SUBMIT%>?id=${item.id}" class="btn btn-green"
                       data-toggle="doajax" data-mask="true" data-confirm-msg="确定要删除吗？">软删除</a>
                    <a href="${root}<%=Uri._A_MENU_DELETE_SUBMIT%>?id=${item.id}" class="btn btn-green"
                       data-toggle="doajax" data-mask="true" data-confirm-msg="确定要删除吗？">删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<%@ include file="/WEB-INF/view/common/_page_footer.jsp" %>